package com.etime.shuhuiyuan.services.department.interfaces;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etime.shuhuiyuan.pojo.Demo;
import com.etime.shuhuiyuan.pojo.Department;

import java.util.List;

public interface DepartmentService {

    /**
     * 添加
     * @param department
     * @return
     */
    int insertDepartment(Department department);

    /**
     * 更新
     * @param department
     * @return
     */
    int updateDepartment(Department department);

    /**
     * 查询全部
     * @param department
     * @return
     */
    List<Department> selectDepartmentList(Department department);

    /**
     * 分页查询
     * @param department
     * @param pagenum
     * @param pagesize
     * @return
     */
    Page<Department> selectDepartmentByPage(Department department, long pagenum, long pagesize);

    /**
     * 根据id进行查询
     * @param deptid
     * @return
     */
    Department selectDepartmentByid(Integer deptid);
}
